package com.youbang.bsMgr.user.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.github.pagehelper.PageInfo;
import com.youbang.bsMgr.user.model.UserEntity;
import com.youbang.bsMgr.user.service.UserService;

@RestController
public class UserController {
	@Autowired
	private UserService userService;

	@RequestMapping("/user/{id}")
	UserEntity queryEntity(@PathVariable("id") Long id) throws Exception {
		return userService.queryEntity(id);
	}

	@RequestMapping(value = "/UserList/{page}/{pageSize}")
	public PageInfo List(@PathVariable Integer page, @PathVariable Integer pageSize) {
		return null;
	}

	@RequestMapping(value = "/add")
	public String add(UserEntity user) {

		return "";

	}
}
